home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 44 / Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso / -in_the_mag- / workbench / netkeys / src / emodules / devices / pronet.e next >
Text File  |  1999-07-28  |  881b  |  43 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/io', 'exec/ports'
  5.  
  6. CONST PNB_ERRORSTRING = 0, PNF_ERRORSTRING = 1
  7.  
  8. CONST PNDERR_PORTEXISTS = -94,
  9.       PNDERR_DRIVERTROUBLE = -96,
  10.       PNDERR_UNIT_NOT_DEFINED = -97,
  11. -> This error can only occur after CMD_WRITE:
  12.       PNDERR_DESTINATION_GONE = -98
  13.  
  14. -> The ProNET IO Request:
  15.  
  16. OBJECT pnrequest
  17.   ioreq:io
  18.   msgport:PTR TO mp
  19.   netsourceport:INT -> UNSIGNED
  20.   netdestport:INT   -> UNSIGNED
  21.   data, length
  22. ENDOBJECT
  23.  
  24. -> You can use this in netsourceport:
  25.  
  26. CONST PNP_NEXTFREE = -2
  27.  
  28. /*
  29.  * Following is data for ProNET driver developers
  30.  */
  31.  
  32. -> The ProNET Driver Data Structure:
  33.  
  34. OBJECT pndrvdata
  35.   readsignalbit:CHAR, pad0:CHAR
  36.   readquery, readflush, read, write, exit
  37. ENDOBJECT
  38.  
  39. -> Return codes (magic cookies) for the driver's Init routine:
  40.  
  41. CONST PNDRVERR_NO_MEMORY  = -1 -> no memory
  42. CONST PNDRVERR_WRONG_ARGS = -2 -> wrong .config arguments
  43.